home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / BlueLibrary Pack1 v1.1 / BlueLibrary Pack1 ƒ / BD Common ƒ / CAboutBox.h next >
Encoding:
Text File  |  1996-04-19  |  1.3 KB  |  44 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CAboutBox.h
  3. //    Written by Christophe Causer
  4. //    ©1996 BlueDays Software.  All Rights Reserved.
  5. //
  6. //    You may use this class in any non-commercial program without
  7. //    permission.  The only restriction is that you must credit the
  8. //    author in your about box.  For commercial use, please contact
  9. //    the author at the email address below.
  10. //                    
  11. //    Send bug-reports and comments to bluedays@kagi.com
  12. //
  13. // ===========================================================================
  14.  
  15.  
  16. #pragma once
  17.  
  18. #include    <LWindow.h>
  19.  
  20. const    CommandT    cmd_EndOfAboutBox = 'EAaB';
  21.  
  22. class    CAboutBox :     public LWindow {
  23.     public:
  24.         enum { class_ID = 'ABox' };
  25.  
  26.         static CAboutBox*        CreateAboutBoxStream(LStream *inStream);
  27.  
  28.                                 CAboutBox();                        // Default constructor
  29.                                 ~CAboutBox();                        // Default destructor
  30.  
  31.                                 CAboutBox(LStream *inStream);        // Stream constructor
  32.  
  33.         virtual    void            FindCommandStatus(    CommandT    inCommand,
  34.                                                     Boolean        &outEnabled,
  35.                                                     Boolean&    outUsesMark,
  36.                                                     Char16&        outMark,
  37.                                                     Str255        outName);
  38.  
  39.                 void            Display();                            // Can't be overrided
  40.         virtual void            Click(SMouseDownEvent &inMouseDown);
  41.  
  42.     protected:
  43.         virtual Boolean            HandleKeyPress(const EventRecord &inKeyEvent);
  44. };